[PATCH 2/2] [OpenCL] Simplify LLVM IR generated for OpenCL blocks
authorAndrew Savonichev <andrew.savonichev@intel.com>
Thu, 21 Feb 2019 11:02:10 +0000 (11:02 +0000)
committerGianfranco Costamagna <locutusofborg@debian.org>
Tue, 25 Feb 2020 14:08:36 +0000 (14:08 +0000)
commit71fd915a26c5f2000347a019b4d90e4354f2469a
tree46a492a96e0f95cc3483c3a7396aea62ebbbe6b3
parent3a89bf05c226a4bfdefe04c4642438727ed4b385
[PATCH 2/2] [OpenCL] Simplify LLVM IR generated for OpenCL blocks

Summary:
Emit direct call of block invoke functions when possible, i.e. in case the
block is not passed as a function argument.
Also doing some refactoring of `CodeGenFunction::EmitBlockCallExpr()`

Reviewers: Anastasia, yaxunl, svenvh

Reviewed By: Anastasia

Subscribers: cfe-commits

Tags: #clang

Differential Revision: https://reviews.llvm.org/D58388

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@354568 91177308-0d34-0410-b5e6-96231b3b80d8

Gbp-Pq: Name OpenCL-Simplify-LLVM-IR-generated-for-OpenCL-blocks.patch
clang/lib/CodeGen/CGBlocks.cpp
clang/lib/CodeGen/CGOpenCLRuntime.cpp
clang/lib/CodeGen/CGOpenCLRuntime.h
clang/test/CodeGenOpenCL/blocks.cl
clang/test/CodeGenOpenCL/cl20-device-side-enqueue.cl